﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Mortgage.DDL;
using MortgageMonitor.Report.DDL;
using MortgageMonitor.Report;

namespace LoanMonitor.Utils
{
    public partial class frmReport : Form
    {
        private rptLoanSummary _rptSrc;

        public rptLoanSummary RptSrc
        {
            get { return _rptSrc; }
            set { _rptSrc = value; }
        }

        public frmReport()
        {
            InitializeComponent();
        }

        public frmReport(rptLoanSummary rptsrc)
        {
            try
            {
                this.Font = SystemFonts.MessageBoxFont;
                InitializeComponent();
                crViewer.ReportSource = rptsrc;
            }
            catch
            {
                MessageBox.Show("Cài Crystal Report đã: \\\\10.2.2.199\temp\\\\Anh Ha ito`\\\\CrystalReports10_5", "Oops!");
                return;
            }

        }
    }
}
